from requests import Request, Session

url = 'https://www.shopbmwmotorcycles.com'


def get_catalog_type(path):
    s = Session()
    payload = {}
    headers = {
        "Cookie": "ASP.NET_SessionId=jblt2gja5wcuapyed54at021",
        "Host": "www.shopbmwmotorcycles.com",
    }
    req = Request(
        url=url+path,
        method="GET",
        headers=headers,
        data=payload
    )
    print(req.url)
    print(req.headers)
    prepped = req.prepare()
    response = s.send(prepped)
    return response.text


html = get_catalog_type(path="/BMW_2020_S1000XR.html")
print(html)
